﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace GarageService
{
    [ServiceContract]
    public interface IGarageService
    {
        
        [OperationContract]
        ServicebayResponse bookServiceBay(ServicebayRequest req);

        [OperationContract]
        void cancelServiceBay(int id);
        
    }

    public class ServicebayResponse {
    
        [DataMember]
        public String startDate{ get; set;}

        [DataMember]
        public String endDate{ get; set;}
        
        [DataMember]
        public String size{ get; set;}
        
        [DataMember]
        public Int32 Order_ID{ get; set;}

        [DataMember]
        public String errorMsg { get; set; }

        [DataMember]
        public Int32 numberOfDays { get; set; }
        
    }

     public class ServicebayRequest {
             
        [DataMember]
        public String size{ get; set;}

        [DataMember]
        public String numberOfDays{ get; set;}

        [DataMember]
        public Int32 Order_ID { get; set; }

        
           
    }

}
